﻿using System;
using System.ComponentModel.Design;

namespace SPAdaptiveMenu.Controls
{
    ///<summary>
    ///</summary>
    internal class MenuItemCollectionEditor : CollectionEditor
    {
        ///<summary>
        ///</summary>
        ///<param name="type"></param>
        public MenuItemCollectionEditor(Type type)
            : base(type)
        {
        }

        protected override bool CanSelectMultipleInstances()
        {
            return false;
        }

        protected override Type CreateCollectionItemType()
        {
            return typeof(MenuItem);
        }
    }
}
